﻿@model JobButenko.Models.Resume

@{
    ViewBag.Title = "Редактирование резюме";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Редактирование резюме</h2>


@using (Html.BeginForm("EditResume", "Resume", FormMethod.Post, new {id = "myFrom"}))
{
    <table>
        <tr>
            <td>Текущая cфера деятельности: </td>
            <td>@Html.DropDownListFor(model => model.CurrProfFieldId, (IEnumerable<SelectListItem>) ViewData["ProfField"], new {@class = "serchVacancyDdl"})</td>
            <td>@Html.ValidationMessageFor(model => model.CurrProfFieldId)</td>
        </tr>
        <tr>
            <td>Текущая должность: </td>
            <td>@Html.DropDownListFor(model => model.CurrPostId, (IEnumerable<SelectListItem>) ViewData["Post"], new {@class = "serchVacancyDdl"})</td>
            <td>@Html.ValidationMessageFor(model => model.CurrPostId)</td>
        </tr>
        <tr>
            <td>Желаемая сфера деятельности: </td>
            <td>@Html.DropDownListFor(model => model.DesProfFieldId, (IEnumerable<SelectListItem>) ViewData["DesProfField"], new {@class = "serchVacancyDdl"})</td>
            <td>@Html.ValidationMessageFor(model => model.DesProfFieldId)</td>
        </tr>
        <tr>
            <td>Желаемая должность: </td>
            <td>@Html.DropDownListFor(model => model.DesPostId, (IEnumerable<SelectListItem>) ViewData["DesPost"], new {@class = "serchVacancyDdl"})</td>
            <td>@Html.ValidationMessageFor(model => model.DesPostId)</td>
        </tr>
        <tr>
            <td>Желаемая зарплата: </td>
            <td>@Html.DropDownListFor(model => model.SalaryId, (IEnumerable<SelectListItem>) ViewData["Salar"], new {@class = "serchVacancyDdl"})</td>
            <td>@Html.ValidationMessageFor(model => model.SalaryId)</td>
        </tr>
        <tr>
            <td>Показывать резюме: </td>
            <td>@Html.EditorFor(model => model.StateResume)</td>
            <td>@Html.ValidationMessageFor(model => model.StateResume)</td>
        </tr>
        <tr>
            <td></td>
            <td colspan="2">
                <input class="buttonForm" type="submit" value="Изменить" />
            </td>
        </tr>
    </table>
}